Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): repair corrupted blobs when pushed again #1927

Merged

Conversation

eusebiu-constantin-petu-dbk
Copy link
Collaborator

CheckBlob() returns ErrBlobNotFound on corrupted blobs

closes #1922

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@andaaron andaaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks ok.

andaaron
andaaron previously approved these changes Oct 12, 2023
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #1927 (575fdb8) into main (1675f30) will increase coverage by 0.01%.
The diff coverage is 89.21%.

@@            Coverage Diff             @@
##             main    #1927      +/-   ##
==========================================
+ Coverage   91.86%   91.88%   +0.01%     
==========================================
  Files         155      155              
  Lines       26702    26785      +83     
==========================================
+ Hits        24531    24611      +80     
- Misses       1607     1609       +2     
- Partials      564      565       +1     
Files Coverage Δ
pkg/storage/common/common.go 93.05% <94.82%> (+0.15%) ⬆️
pkg/storage/imagestore/imagestore.go 87.25% <81.81%> (+0.22%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk force-pushed the corrupted_blobs branch 3 times, most recently from 86304bf to b3ad585 Compare October 17, 2023 17:22
@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk force-pushed the corrupted_blobs branch 2 times, most recently from 19de1d7 to d2b59fa Compare October 18, 2023 16:56
@eusebiu-constantin-petu-dbk
Copy link
Collaborator Author

needed to increase a bit the delays on minio because it failed multiple times. The added overhead of checking manifests is big enough to interfere, but small enough to not impact the Minimum performance regression check.

When I used the digest to calculate a blob's digest, and validate, the Minimum performance regression check failed.

CheckBlob() returns ErrBlobNotFound on corrupted blobs

closes project-zot#1922

Signed-off-by: Petu Eusebiu <[email protected]>
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested this.

lgtm

@rchincha rchincha merged commit 7ab2032 into project-zot:main Oct 20, 2023
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: Repair corrupted blobs when pushed again
3 participants